const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = {
  devServer: {
    port: 6666,
    overlay: {
      // 让浏览器 overlay 同时显示警告和错误
      errors: true
    },
    hotOnly: true, // 热更新
    open: true
  },

  configureWebpack: {
    // provide the app's title in webpack's name field, so that
    // it can be accessed in index.html to inject the correct title.
    name: "积分商城",
    resolve: {
      alias: {
        "@": resolve("src")
      }
    }
  },

  productionSourceMap: false
};
